package com.billiards.service.impl;

import com.billiards.dao.LeavesMapper;
import com.billiards.entity.Leaves;
import com.billiards.service.LeavesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LeavesServiceImpl implements LeavesService {
    @Autowired
    public LeavesMapper leavesMapper;

    @Override
    public List<Leaves> getLeavesList() {
        return leavesMapper.getLeavesList();
    }

    @Override
    public int addLeaves(Leaves leaves) {
        return leavesMapper.addLeaves(leaves);
    }
}
